package com.ziyun.pop.modules.userPayment.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ziyun.pop.modules.order.entity.UserPaymentEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 用户支付记录表
 * 
 * @author llc
 * @email 
 * @date 2018-09-29 09:57:13
 */
@Service("erpUserPaymentDao")
public interface ErpUserPaymentDao extends BaseMapper<UserPaymentEntity> {

    UserPaymentEntity getPaySuccLastEntityByOrderId(String orderId);

    Integer checkOrderIsPay(String orderId);

    Map<String,String> getPaymentById(Map<String, Object> params);

    List<UserPaymentEntity> queryOrderPaymentInfo(@Param("orderId") String orderId);

    UserPaymentEntity getPaySuccLastEntityByOrderNo(@Param("orderNo")String orderNo);
}
